﻿using brevis.Nop.Report.Data.OrderTableAdapters;
using brevis.Nop.SDK.Entity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace brevis.Nop.SDK.ReportDataGetter
{
    /// <summary>
    /// Represents a data getter for Nop_Report_Order
    /// </summary>
    public class NopReportOrder:IReportDataGetter
    {
        /// <summary>
        /// Gets a full list of Nop_Report_Order view result
        /// </summary>
        /// <returns></returns>
        public object Get()
        {
            var ta = new Nop_Report_OrderTableAdapter();
            ta.Connection.ConnectionString =
                ConfigurationManager.ConnectionStrings["NopSqlConnection"].ConnectionString;
            return ta.GetData();
        }

        /// <summary>
        /// Not implemented ...
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public object Get(MethodAttribute[] param)
        {
            throw new NotImplementedException();
        }
    }
}
